package Practice.Practice_02.UserManagementSystem;

import java.util.Scanner;

public class SearchID {
    public static void searchID(Person[] person){
        Scanner sc = new Scanner(System.in);
        System.out.println("输入要查询用户的ID");
        int id = sc.nextInt();
        for (int i = 0; i < person.length; i++) {
            if(person[i].getId() == id){
                System.out.println(person[i].getId() + " " + person[i].getName() + " "
                        + person[i].getPass() + " " + person[i].getEmail() + " " + person[i].getPower());
                System.out.println("=========================");
            }
        }
    }
}
